export function getDictTypeOptions(dictType: string) {
  // 从localStorage获取字典
  const dictList = JSON.parse(localStorage.getItem('dictList') || '[]');
  // 如果有字典数据，使用字典数据，并根据dictType筛选
  const dictKeyList = Object.keys(dictList);
  if (dictKeyList.length > 0 && dictKeyList.includes(dictType)) {
    if (dictList[dictType].length > 0) {
      return dictList[dictType].map((item: any) => ({
        ...item,
        color: item.color || 'blue', // 可以设置默认颜色
      }));
    }
  } else {
  }
}
